package com.kapukapu.gateway.config;

import com.fasterxml.jackson.databind.ObjectMapper;
import com.kapukapu.gateway.filter.TokenGlobalFilter;

import org.springframework.context.annotation.Configuration;

/**
 * @author: sivan
 * @date: 2019/12/22
 * @email: zifanuu@gmail.com
 */
@Configuration
public class GatewayConfiguration {

	// @Bean
	public TokenGlobalFilter tokenGlobalFilter(ObjectMapper objectMapper) {
		return new TokenGlobalFilter(objectMapper);
	}


}
